package com.ky.pro.java.sharding.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author Kevin Dummy
 * @since 2021-12-18
 */
@Getter
@Setter
@TableName("t_user_info")
@ApiModel(value = "UserInfo对象", description = "用户信息")
@Builder(toBuilder = true)
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    private Long id;

    private String userName;

    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime userBirthday;

    @ApiModelProperty("性别")
    private Integer userGender;

    @ApiModelProperty("年龄，0 - 女性，1 - 男性")
    private Integer userAge;

    @ApiModelProperty("登录名")
    private String userLoginName;

    @ApiModelProperty("登录密码（加密后）")
    private String userLoginPwd;

    @ApiModelProperty("密码盐值")
    private String userLoginSalt;

    @ApiModelProperty("删除标志")
    private Boolean delStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("版本号")
    private Integer version;


}
